<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta http-equiv="x-ua-compatible" content="ie=7" />
        <title>{$title}</title>
        <link href="{:C('WEB_URL')}Public/admin/style/base.css" rel="stylesheet" type="text/css" />
        <link href="{:C('WEB_URL')}Public/admin/style/master.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/jquery1.9.1.js"></script>
        <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/base.js"></script>
        <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/My97/WdatePicker.js"></script>
    </head>
    <body>
        <div id="wrapper">
            <h2>{$title}配件<a href="{:U('index')}">返回</a></h2>
            <form action="{:U('save')}" method="post" enctype="multipart/form-data" id="myform">
                <table class="form" >
                    <tr>
                        <td class="tkey">分类:</td>
                        <td>

                            <select name='type_id' style="width:150px;">
                            <volist name="peiJianType" id="vo">
							<option <?php if($data['type_id']==$vo['pt_id']){echo 'selected';} ?> value="{$vo['pt_id']}">{$vo['name']}</option>
                            </volist>
							</select>
						</td>
                    </tr>
                     <tr>
                        <td class="tkey">品牌:</td>
                        <td><input type="text" name="pj_pinpai" value="{$data['pj_pinpai']}" class="inputText" /></td>
                    </tr>
                    <tr>
                        <td class="tkey">配件名称:</td>
                        <td><input type="text" name="pj_name" value="{$data['pj_name']}" class="inputText" style='width:400px;' /></td>
                    </tr>
                     <tr>
                        <td class="tkey">配件型号:</td>
                        <td><input type="text" name="pj_xinghao" value="{$data['pj_xinghao']}" class="inputText" /></td>
                    </tr>
                    <tr>
                        <td class="tkey w160">配件logo:</td>
						<td>
							<?php if($data['logo']){ ?>
							<img src="{:C('WEB_URL')} {$data['logo']}" style="width:50px">
							<?php }else{ ?>
							请上传图片
							<?php } ?>
							<input type="file" name="file"  />
						</td>
                    </tr>
					 <tr>
                        <td class="tkey">市场价:</td>
                        <td><input type="text" name="pj_scprice" value="{$data['pj_scprice']}" class="inputText" />元</td>
                    </tr>
                      <tr>
                        <td class="tkey">成本价格:</td>
                        <td><input type="text" name="pj_cbprice" value="{$data['pj_cbprice']}" class="inputText" />元</td>
                    </tr>
					 <tr>
                        <td class="tkey">现价:</td>
                        <td><input type="text" name="pj_csprice" value="{$data['pj_csprice']}" class="inputText" />元</td>
                    </tr>
					<tr>
                        <td class="tkey">升量/千克:</td>
                        <td><input type="text" name="weight" value="{$data['weight']}" class="inputText" />L/KG</td>
                    </tr>
                    <tr>
                        <td class="tkey">库存:</td>
                        <td><input type="text" name="count" value="{$data['count']}" class="inputText" /></td>
                    </tr>
                    <tr>
                        <td class="tkey">预警库存:</td>
                        <td><input type="text" name="warning" value="{$data['warning']}" class="inputText" /></td>
                    </tr>
                    <tr>
                        <td class="tkey">条形码:</td>
                        <td><input type="text" name="code" value="{$data['code']}" class="inputText" /></td>
                    </tr>
                    <tr>
                        <td class="tkey">&nbsp;</td>
						<input type="hidden" name ='pj_id' value="{$data['pj_id']}">
                        <td><input type="submit" value="确定" class="btnOrange" /></td>
                    </tr>
                </table>
            </form>
        </div>
       
        <style>
            .picList li{float:left;margin:0 10px;}
            .picList li a{display:block;text-align:center;color:#f60}
        </style>
		
<script type="text/javascript">


            
</script>
</body>
</html>